package com.hyt.it.ogt.pj.data;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import com.hyt.it.ogt.pj.data.common.MarkConfigProperties;

/**
 * @author liuqi
 * @date 2022-05-27
 */
@SpringBootApplication(exclude = {DruidDataSourceAutoConfigure.class})
@EnableDiscoveryClient
@MapperScan(basePackages = {"com.hyt.it.ogt.pj.data.mapper"})
@ComponentScan(basePackages = {"com.hyt"})
@EnableConfigurationProperties(MarkConfigProperties.class)
@EnableFeignClients("com.hyt")
public class Application {

    /**
     * 启动main方法
     *
     * @param args 参数
     */
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}
